package com.alibaba.citrus.cr.unified.inventory.repository;

import com.epoch.app.crunifiedinventory.domain.allocateapplyorderdetail.model.AllocateApplyOrderDetail;
import com.epoch.app.crunifiedinventory.sdo.AllocateApplyOrderDetailSDO;

import java.util.List;

/**
 * @author heyu
 * @description 调拨单详情写服务
 */
public interface AllocateApplyOrderDetailWriteRepository {
    /**
     * 插入调拨预报单详情
     * @param allocateApplyOrderDetailSDO
     */
    public void createAllocateApplyOrderDetail(AllocateApplyOrderDetailSDO allocateApplyOrderDetailSDO);

    /**
     * 批量创建调拨预报单明细
     * @param allocateApplyOrderDetailSDOList
     */
    public void batchCreateAllocateApplyOrderDetail(List<AllocateApplyOrderDetailSDO> allocateApplyOrderDetailSDOList);

    /**
     * 根据调拨预报单id删除
     * @param id
     * @return
     */
    public void deleteDetailByOrderId(Long id);
}
